package com.jymf.consume.dao;

import com.jymf.model.ClientBalance;

import java.math.BigDecimal;
import java.util.List;
import java.util.Map;

import com.jymf.model.Page;
import org.apache.ibatis.annotations.Param;

public interface ClientBalanceDao {
    int insertSelective(ClientBalance record);

    ClientBalance selectByPrimaryKey(Integer balanid);
    ClientBalance selectByClientId(Integer clientinfoId);
    int updateByPrimaryKeySelective(ClientBalance record);
    public void updateByClientId(ClientBalance record) throws Exception;
    public void chargeByClientId(ClientBalance record) throws Exception;
    List<Map<String, Object>> getBalanceInfo(Page<Map<String, Object>> page);
    public void consumeByClientId(ClientBalance record) throws Exception;
}